package com.yichat.micro.msghttpservice.core.http;

import com.yichat.micro.msghttpservice.common.result.HttpResult;
import com.yichat.micro.msghttpservice.common.vo.MsgHttpRequestVo;
import com.yichat.micro.msghttpservice.core.rpc.MsgHttpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chenmohan on 2019/04/03
 *
 * @description 对外提供服务使用http协议
 */
@RestController
public class ExposeController {

    @Autowired
    MsgHttpService msgHttpService;

    @RequestMapping("/http")
    public HttpResult http(MsgHttpRequestVo param) {
        return msgHttpService.msgHttp(param);
    }


}
